package com.it.orders.client;

import com.it.common.entity.Cart;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "cart")
public interface CartClient {

    @PostMapping("/listCart")
    List<Cart> listCart(@RequestBody Cart cart);

    @RequestMapping("/removeCart")
    void removeCart(@RequestBody Cart cart);
}
